package com.ruoyi.turnover.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 查看营业额对象 t_driver_turnover
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
public class TDriverTurnover extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 司机营业额ID */
    private Long turnoverId;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverId;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 营业额 */
    @Excel(name = "营业额")
    private BigDecimal turnover;

    public void setTurnoverId(Long turnoverId) 
    {
        this.turnoverId = turnoverId;
    }

    public Long getTurnoverId() 
    {
        return turnoverId;
    }

    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }

    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    public void setTurnover(BigDecimal turnover) 
    {
        this.turnover = turnover;
    }

    public BigDecimal getTurnover() 
    {
        return turnover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("turnoverId", getTurnoverId())
            .append("driverId", getDriverId())
            .append("date", getDate())
            .append("turnover", getTurnover())
            .toString();
    }
}
